package cn.edu.glut.vo;

import java.util.LinkedHashMap;
import java.util.Map;

import org.assertj.core.util.Maps;

import com.sargeraswang.util.ExcelUtil.ExcelCell;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author Caizhfy
 * @version v.0.1
 * @createTime 2017年12月15日下午9:46:18
 * @email Caizhfy@163.com
 * @description 管理员管理学生时直接查看的信息
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudentToAdminVO {
	
	private String id;
	@ExcelCell(index = 0)
	private String username;
	@ExcelCell(index = 1)
	private String nickname;
	@ExcelCell(index = 2)
	private String sclass;
	@ExcelCell(index = 3)
	private String majorName;
	@ExcelCell(index = 4)
	private Integer choose;			//该项大于零的，就代表已经选了题，如果为2的就已经第一第二志愿都选了
	@ExcelCell(index = 5)
	private Integer selectSuccess;	//是否确选 只有1是确选的，别的都是不确选的
	
	public StudentToAdminVO(String username, String nickname, String sclass, String majorName, Integer choose, Integer selectSuccess) {
		super();
		this.username = username;
		this.nickname = nickname;
		this.sclass = sclass;
		this.majorName = majorName;
		this.choose = choose;
		this.selectSuccess = selectSuccess;
	}
	
	public StudentToAdminVO(String id, String username, String nickname, String sclass, String majorName, Integer selectSuccess) {
		super();
		this.id = id;
		this.username = username;
		this.nickname = nickname;
		this.sclass = sclass;
		this.majorName = majorName;
		this.selectSuccess = selectSuccess;
	}
	
	public static Map<String, String> getExcelCellKey(){
		Map<String, String> map = new LinkedHashMap<String, String>();
		map.put("username", "学号");
		map.put("nickname", "姓名");
		map.put("sclass", "班级");
		map.put("majorName", "专业");
		map.put("choose", "选题数量");
		map.put("selectSuccess", "是否确选");
		return map;
	}
}
